<%@ page contentType="text/html"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="javax.ejb.*,javax.naming.*,java.rmi.*" %>
<%@ page import="jwanalytics.ejb.webhouse.*,jwanalytics.ejb.dataobjects.*,jwanalytics.web.*,javax.faces.context.*" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<f:view>
  <html>
    <head>
	  <base href="<%=basePath%>">
      <title>site1.jsp: welcome to the rocky mountains day camp</title>
      <meta http-equiv="pragma" content="no-cache">
	  <meta http-equiv="cache-control" content="no-cache">
	  <meta http-equiv="expires" content="0">    
	  <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	  <meta http-equiv="description" content="This is my page">
	  <!--
	     <link rel="stylesheet" type="text/css" href="styles.css">
	  -->
    </head>
    <body bgcolor="#ADD8E6">
      <h:form>
        <h2>
          Site 1 entry page: the rocky mountains day camp.
        </h2>
        <p>This is the entry page for site 1: the rocky mountains.  This is supposed to represent the homepage of a business which offers day camp activities for youngsters.</p>
        
        <p>From here you can:</p>
        
        <ul>
        	<li>Spend some time visiting <a href="faces/activities.jsp">the activities page</a> which explains what you can do while in the rocky mountains.</li>
        	<li>Go to an 
        	    <h:commandLink id="goToPage3" action="#{myBackingBean.decideOnPage}"><h:outputText value="optimized page"/></h:commandLink> which is chosen by a computer algorithm 
        	    from a selection of 3 pages as the page that is most likely to increase your chances of proceeding to the "goal.jsp" page and completing our conversion goal which is
        	    to have you book a day camp for your children in the rocky mountains.
        	</li>
        </ul>
        
        <img src="http://www.geocities.com/aacesta/sitemap_v1.0.png" />
        
        <!--  Logging the page. -->
        <%
        String userSessionBeanName = "userSessionBean";
        if (session.getAttribute(userSessionBeanName) == null) {
        	session.setAttribute(userSessionBeanName, new UserSessionBean());
        }
		
		((UserSessionBean)session.getAttribute(userSessionBeanName)).logPageHit("site1.jsp", request, response);
		
        %>
      </h:form>
    </body>
  </html>
</f:view>
